<template>
  <div class="source">
      {{id}}
      <!-- <sourcevue /> -->
  </div>
</template>

<script>

export default {
  // components: {
  //   sourcevue
  // },
  data() {
    return {
      id : 1
    }
  },
  beforeCreate() {
    console.log('new beforeCreate')
  },
  created() {
    this.id = 2
    console.log('new created')
  },
  beforeMount() {
     this.id = 3
    console.log('new beforeMount')
  },
  mounted() {
     this.id = 4
    console.log('new mounted')
  },
  beforeUpdate() {
    console.log('new beforeUpdate')
  }
  ,
  updated() {
    //  this.id = 5
    console.log('new updated')
  }
  ,beforeDestroy() {
    //  this.id = 6
    console.log('new beforeDestroy')
  }
  ,destroyed() {
    //  this.id = 7
    console.log('new destroyed')
  }


}
</script>

<style lang="less" scoped>

</style>